package com.ljtg.ljtgpojo.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "Employee", description = "员工实体类")
public class Employee implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID", example = "1")
    private Long id;

    @Schema(description = "用户名", example = "john_doe")
    private String username;

    @Schema(description = "姓名", example = "John Doe")
    private String name;

    @Schema(description = "密码", example = "password123")
    private String password;

    @Schema(description = "手机号", example = "13800138000")
    private String phone;

    @Schema(description = "性别", example = "男")
    private String sex;

    @Schema(description = "身份证号", example = "123456789012345678")
    private String idNumber;

    @Schema(description = "状态", example = "1")
    private Integer status;

    @Schema(description = "创建时间", example = "2023-10-01T12:00:00")
    private LocalDateTime createTime;

    @Schema(description = "更新时间", example = "2023-10-01T12:00:00")
    private LocalDateTime updateTime;

    @Schema(description = "创建人", example = "1")
    private Long createUser;

    @Schema(description = "更新人", example = "1")
    private Long updateUser;
}